﻿using Kingdee.BOS.WebApi.Client;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace ConsoleApp1
{
    internal class Program
    {
        //private const string dbid = "65d5b9f64fe6ab";
        //private const string serverUrl = "http://127.0.0.1/k3cloud/";
        //private const string userName = "demo"; //"admin";
        //private const string password = "kingdee@123";

        private const string dbid = "64538cf4ff707d";
        private const string serverUrl = "http://127.0.0.1/k3cloud/";
        private const string userName = "admin"; 
        private const string password = "kingdee@123";

        /// <summary>
        /// 登录API
        /// </summary>
        /// <returns></returns>
        private static K3CloudApiClient ValidateLogin(out bool bl)
        {
            K3CloudApiClient client = new K3CloudApiClient(serverUrl);
            var loginResult = client.ValidateLogin(dbid, userName, password, 2052);
            var resultType = JObject.Parse(loginResult)["LoginResultType"].Value<int>();
            bl = resultType == 1 ? true : false;
            //  { "Message":null,"MessageCode":"CheckPasswordPolicy","LoginResultType":1,"Context":{ "UserLocale":"zh-CN","LogLocale":"zh-CN","DBid":"60e7a4a8a0a000","DatabaseType":3,"SessionId":"qwkeefx0ces2h0ehrbixxiaq","UseLanguages":[{ "LocaleId":2052,"LocaleName":"中文(简体/中国)","Alias":"CN"}],"UserId":195221,"UserName":"yd01","CustomName":"江苏挂车帮租赁有限公司","DisplayVersion":"7.6.2003.9","DataCenterName":"江苏挂车帮租赁有限公司","UserToken":"1b64446e-9d58-4b64-ae7b-e67cf83b00f9","CurrentOrganizationInfo":{ "ID":1,"AcctOrgType":"1","Name":"江苏挂车帮租赁有限公司","FunctionIds":[101,102,103,104,108,106,107,109,110,111,112,113,114]},"IsCH_ZH_AutoTrans":false,"ClientType":32,"WeiboAuthInfo":{ "WeiboUrl":null,"NetWorkID":null,"CompanyNetworkID":null,"Account":" @","AppKey":"FkdTqJiNeCQC0ugp","AppSecret":"yCP3ucK2IQUm2D3heHxiarq1RJZwfcnKullRSMOIEM","TokenKey":" ","TokenSecret":" ","Verify":null,"CallbackUrl":null,"UserId":" ","Charset":{ "BodyName":"utf-8","EncodingName":"Unicode (UTF-8)","HeaderName":"utf-8","WebName":"utf-8","WindowsCodePage":1200,"IsBrowserDisplay":true,"IsBrowserSave":true,"IsMailNewsDisplay":true,"IsMailNewsSave":true,"IsSingleByte":false,"EncoderFallback":{ "DefaultString":"�","MaxCharCount":1},"DecoderFallback":{ "DefaultString":"�","MaxCharCount":1},"IsReadOnly":true,"CodePage":65001} },"UTimeZone":{ "OffsetTicks":288000000000,"StandardName":"(UTC+08:00)北京，重庆，香港特别行政区，乌鲁木齐","Id":230,"Number":"1078_SYS","CanBeUsed":true},"STimeZone":{ "OffsetTicks":288000000000,"StandardName":"(UTC+08:00)北京，重庆，香港特别行政区，乌鲁木齐","Id":230,"Number":"1078_SYS","CanBeUsed":true},"GDCID":"","Gsid":null,"TRLevel":0,"ProductEdition":0,"DataCenterNumber":"001"},"KDSVCSessionId":"a7a0032f-0aea-45bd-82c3-31a6f2193014","FormId":null,"RedirectFormParam":null,"FormInputObject":null,"ErrorStackTrace":null,"Lcid":0,"AccessToken":null,"KdAccessResult":null,"IsSuccessByAPI":true}
            return client;
            //new LoginEntity
            //{
            //    IsSuccess = resultType == 1 ? true : false,
            //    Message = resultType == 1 ? "" : "接口连接失败,请联系管理员",
            //    ApiClient = client
            //};
        }
        private static  void Log(string title, string text, string source_type, string source_id, string status, List<string> users, List<string> userphones)
        {
            using (FileStream fileStream = new FileStream("D:\\test\\msg.txt", FileMode.Append, FileAccess.Write))
            {
                using (StreamWriter sw = new StreamWriter(fileStream))
                {
                    // 写入内容到文件。    
                    sw.WriteLine("---------------------------" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "---------------------------");
                    sw.WriteLine("待办任务标题: " + title);
                    sw.WriteLine("待办任务内容: " + text);
                    sw.WriteLine("消息类型: " + source_type);
                    sw.WriteLine("待办任务id: " + source_id);
                    sw.WriteLine("消息状态: " + status.ToString());
                    sw.WriteLine("接受者用户列表: " + string.Join(", ", users));
                    sw.WriteLine("接受者用户列表手机号: " + string.Join(", ", userphones));
                    sw.WriteLine("------------------------------------------------------");

                }
            }
        }
        private static string GetPhone(string id, K3CloudApiClient client)
        {
            string phone = "";
            //SEC_User
            //                {
            //                    "CreateOrgId": 0,
            //    "Number": "",
            //    "Id": "100463",
            //    "IsSortBySeq": "false"
            //}

            var result = client.View("SEC_User", "{\"CreateOrgId\": 0,\"Number\": \"\",\"Id\": \"" + id + "\",\"IsSortBySeq\": \"false\"}");
            phone = JObject.Parse(result)["Result"]["Result"]["Phone"].Value<string>();
            //{ "Result":{ "ResponseStatus":{ "IsSuccess":true},"Result":{ "Id":100463,"MultiLanguageText":[],"FDescription":[],"Name":"陈豪","FForbidStatus":"A","FPRIMARYGROUP_Id":0,"FPRIMARYGROUP":null,"FCreateDate":"2023-05-09T14:45:41.58","FCreatorId_Id":16394,"FCreatorId":{ "Id":16394,"Name":"Administrator","UserAccount":null},"FLinkObject_Id":100262,"FLinkObject":{ "Id":100262,"Number":"陈豪","MultiLanguageText":[{ "PkId":100001,"LocaleId":2052,"Name":"陈豪"}],"Name":[{ "Key":2052,"Value":"陈豪"}]},"FPassword":null,"FOrgId_Id":1,"FOrgId":{ "Id":1,"MultiLanguageText":[{ "PkId":1,"LocaleId":2052,"Name":"江苏易蝶软件科技有限公司"},{ "PkId":100001,"LocaleId":1033,"Name":" "},{ "PkId":100002,"LocaleId":3076,"Name":" "}],"Name":[{ "Key":2052,"Value":"江苏易蝶软件科技有限公司"},{ "Key":1033,"Value":" "},{ "Key":3076,"Value":" "}],"Number":"100"},"Salt":"000396d513c834299c2311edee35256bb63f","IsLock":false,"MBACCONT":" ","RegState":false,"AccessToken":" ","TokenSecret":" ","WeiboUserId":" ","UserAccount":"陈豪","DomainUser":" ","FType":"1","FUserType":"1","Email":" ","DynamicPassword_Id":0,"DynamicPassword":null,"Phone":"17715228960","FSocialId":" ","FEnableUserId_Id":0,"FEnableUserId":null,"FEnableTime":null,"FDisableUserId_Id":0,"FDisableUserId":null,"FDis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7kAgOswu/K06dHxXmY6/ql3hk9wrY9vtS8GD79w93zaHf0ZpzBY2Y+7OamppWi2xjjKktEr/2goeCBL7XJEwKDvHLdpnXqlNvdXzZG3QLAoieOL+wEb5FXilxZ5M+bpWOPHaPrJqh76Uwx3cWHG1Mp9+vRbYxxtQHhKfd4EEAuDMdVSgl/xk9XR7ZrZB/TPr1q7IytUf9X0eRHgXb2Y9t3In5GEM6OwJmdlRG2hTFagL9bUcfrxYEjtsUwCPbGGPqBwL0WASP1qMKhPAkiZMCQRJH8r8c2R+BcieqTAo2UfeOyG542JaBbP/epNeQvqHtlGmb0/bm8/kfRPGaQD9Hqz/1Ffsk+/CWMcbUHQRoJcRwpoIH4pQ9SKbbO5MwJrHCd3xWoQN0Coc27ot6b9FuyV8lrCWMqYnt0rfWR2gbGesB2AmM8xyC5U1t7FLsMvImkL5IuWweZIVzo2X5KFfUq13KQdcx6Ct7EFHGWGay/s3INsaY+oMIrYQ4TkGUZiFKoyVUCOGz2NuszyJ/FsvXR/GiQFA37o6nUtjOm9ke3WacTF9PzI4cOrDsjcHYHGw265qnQptMm/tFF1WHPtel/QfYB3qSX/3fiw2MbGO6CR/72P8Bp5jcb6LzCP8AAAAASUVORK5CYII=","FSignetPath":"TempfilePath/014337ed-0a02-4782-b7de-d3ddf0126fbc.png","FFaceImg":null,"FFaceUid":" ","FIsLockTerminal":false,"FIsRegister":false,"Userorg":[{ "Id":100003,"FOrgID_Id":1,"FOrgID":{ "Id":1,"DocumentStatus":"C","ForbidStatus":"A","MultiLanguageText":[{ "PkId":1,"LocaleId":2052,"Name":"江苏易蝶软件科技有限公司"},{ "PkId":100001,"LocaleId":1033,"Name":" "},{ "PkId":100002,"LocaleId":3076,"Name":" "}],"Name":[{ "Key":2052,"Value":"江苏易蝶软件科技有限公司"},{ "Key":1033,"Value":" "},{ "Key":3076,"Value":" "}],"Number":"100"},"EntityRole":[{ "Id":100022,"FRoleId_Id":104015,"FRoleId":{ "Id":104015,"FNumber":"YD0001","MultiLanguageText":[{ "PkId":500004,"LocaleId":2052,"FName":"使用人员"}],"FName":[{ "Key":2052,"Value":"使用人员"}],"FRoleType":"0","FForbidStatus":"A"} }]}]} } }
            return phone;
        }
        static void Main(string[] args)
        {
            var client = ValidateLogin(out bool bl);
            if (bl)
            {
                GetPhone("100036", client);
            }
        }
    }
}
